package com.example.test.chapter7.custom_listview_collapsing_row;

import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;

public class CListView3Activity extends ListActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setListAdapter(new PhoneListAdapter(this));
	}

	@Override
	protected void onListItemClick(ListView l, View v, int position, long id) {
		((PhoneListAdapter) getListAdapter()).toggle(position);
	}
}
